﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Koonsoft.HYCRM.Model
{
    public class CreatePurchaseEntity
    {
        public int id { get; set; }
        public string CompanyID { get; set; }
        public string Date { get; set; }
        public string VoucherNo { get; set; }
        public string PoNo { get; set; }
        public string Supplier { get; set; }
        public string Offering { get; set; }
        public string Amount { get; set; }
        public string Currency { get; set; }
        public double HKMoney { get; set; }

        public string OrderId { get; set; }

    }

    public class CreateSalesEntity
    {
        public int id { get; set; }
        public string CompanyID { get; set; }
        public string Date { get; set; }
        public string VoucherNo { get; set; }
        public string OrderNo { get; set; }
        public string Customer { get; set; }
        public string Offering { get; set; }
        public string Amount { get; set; }
        public string Currency { get; set; }
        public double HKMoney { get; set; }

        public string OrderID { get; set; }

    }

    public class CreateBankEntity
    {
        public int id { get; set; }
        public string CompanyID { get; set; }
        public string VoucherNo { get; set; }
        public string Date { get; set; }
        public string Explain { get; set; }
        public string Amount { get; set; }
        public string Currency { get; set; }
        public double HKMoney { get; set; }
        public double Last { get; set; }
        public string OrderID { get; set; }
    }

    public class ExchangeRateEntity
    {
        public string Date { get; set; }
        public string Source { get; set; }
        public string Traget { get; set; }
        public double ExchangeRate { get; set; }

    }

    public class CurrencyEntity
    {
        public string CurrencyId { get; set; }
        public string CurrencyName { get; set; }
        public string CurrencyValue { get; set; }
    }

    public class TypeProviderEntity
    {
        public string TypeProviderID { get; set; }
        public string TypeProviderName { get; set; }
    }

    public class DetailTypesEntity
    {
        public string TypeId { get; set; }
        public string TypeName { get; set; }
        public string TypeProviderID { get; set; }
        public string Kinds { get; set; }
        public string EnglishName { get; set; }
    }

    public class CompanyDetailEntity
    {
        public string Id { get; set; }
        public string CompanyId { get; set; }
        public string DetailTypesId { get; set; }
        public double Amount { get; set; }
        public string Date { get; set; }

        public int tempId { get; set; }

        public string OrderId { get; set; }
        public string TypeName { get; set; }
        public string EnglishName { set; get; }

        public int TypeProviderid { set; get; }
        public int Kinds { set; get; }
    }

    public class BankTableDetailEmtity
    {
        public DateTime Date { get; set; }
        public double Amount { get; set; }
        public double HkMoney { get; set; }
        public double InterestIncome { get; set; }
        public double BankCharge { get; set; }
        public string CurrencyName { get; set; }
        public string Ex { get; set; }
    }

    public class ContrastAmount
    {
        public double Amont { get; set; }
        public DateTime Date { get; set; }
    }

    public enum ExplainEnum
    {
        [Remark("入")]
        Sales = 0,

        [Remark("出")]
        Purchase = 1,

        /// <summary>
        /// 利息收益
        /// </summary>
        [Remark("利息收益")]
        Interest = 2,

        /// <summary>
        /// 管理费
        /// </summary>
        [Remark("管理费")]
        ManagementFee = 3,
        /// <summary>
        /// 利息支出
        /// </summary>
        [Remark("利息支出")]
        InterestPurchase = 4,
    }

    public enum CurrencyEnum
    {
        /// <summary>
        /// 港币
        /// </summary>
        [Remark("港币")]
        HK = 1,

        /// <summary>
        /// 美元
        /// </summary>
        [Remark("美元")]
        US = 2,

        /// <summary>
        /// 人民币
        /// </summary>
        [Remark("人民币")]
        RMB = 3,

        /// <summary>
        /// 英镑
        /// </summary>
        [Remark("英镑")]
        GBP = 4,

        /// <summary>
        /// 加拿大元
        /// </summary>
        [Remark("加拿大元")]
        CAD = 5,

        /// <summary>
        /// 瑞士法郎
        /// </summary>
        [Remark("瑞士法郎")]
        CHF = 7,

        /// <summary>
        /// 日元
        /// </summary>
        [Remark("日元")]
        JPY = 8,

        /// <summary>
        /// 澳元
        /// </summary>
        [Remark("澳元")]
        AUD = 9,

        /// <summary>
        /// 欧罗
        /// </summary>
        [Remark("欧罗")]
        EUR = 10
    }
}
